/* TinyMCE 编辑器容器 */
.tinymce-editor-container {
  width: 100%;
  height: 100%; /* 使用传入的height */
  min-height: 400px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: visible;
  background: white;
  display: flex;
  flex-direction: column;
}

/* 确保TinyMCE填充容器 */
.tinymce-editor-container .tox-tinymce {
  height: 100% !important;
  flex: 1;
}

/* 自定义编辑器主题颜色 */
.tox-tinymce {
  border: none !important;
  border-radius: 4px;
}

.tox .tox-toolbar {
  background: #fafafa !important;
  border-bottom: 1px solid #d9d9d9 !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .tox .tox-toolbar__group {
    padding: 2px;
  }

  .tox .tox-tbtn {
    height: 32px;
    width: 32px;
  }
}
